#include<stdio.h>

int main (){
	unsigned char  aar8[2];
	unsigned short aar16[2];
	unsigned int   aar32[2];
	
	printf("请输入两个32位数据：");
	scanf("%u,%u",&aar32[0],&aar32[1]);
	
	printf("32位：%u,%u\n",aar32[0],aar32[1]);
	
	aar16[0]=(unsigned short)aar32[0];
	aar16[1]= (unsigned short)aar32[1];
	
	printf("转换后的16位数据:%hu，%hu\n",aar16[0],aar16[1]);
	
	aar8[0]=(unsigned char)aar32[0];
	aar8[1]=(unsigned char)aar32[1];
	
	printf("转换后的8位数据：%hhu,%hhu\n",aar8[0],aar8[1]);
	
	return 0;
}